<template>
  <div>计数器测试</div>
  <div>{{ count }}</div>
  <NButton type="info" @click="increment">添加计数</NButton>

  <hr />

  <WuCounterOne></WuCounterOne>
</template>

<script setup lang="ts">
import { useCounterStore } from '@/stores/counter'
import { storeToRefs } from 'pinia'
import { NButton } from 'naive-ui'
import WuCounterOne from './WuCounterOne.vue'

const { increment } = useCounterStore()
const { count } = storeToRefs(useCounterStore())
</script>

<style scoped></style>
